package com.maxd.respository.selfGoodsRule;


import com.maxd.model.Goods;
import com.maxd.model.SelfGoodsRule;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SelfGoodsRuleJpaRepository extends JpaRepository<SelfGoodsRule, Long> {

    //分页查询
    Page<SelfGoodsRule> findAll(Pageable pageable);

    //条件查询带分页
    Page<SelfGoodsRule> findAll(Specification<SelfGoodsRule> specification, Pageable pageable);


    List<SelfGoodsRule> findAll(Specification<SelfGoodsRule> specification);

}
